package fhp.hlhj.giantfold.test;

import android.util.Log;
import android.view.View;
import android.view.ViewGroup;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import fhp.hlhj.giantfold.network.UrlApis;
import fhp.hlhj.giantfold.network.Urls;
import fhp.hlhj.giantfold.javaBean.TaoKeBean;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action0;
import rx.functions.Action1;

/**
 * author: FHP
 * data: on 2017\11\23 0023 15:27
 * E-Mail: 103945089@qq.com
 */

public class Ada extends BaseQuickAdapter<String,BaseViewHolder> {
    public String[] strs = new String[20];
    public Ada(int layoutResId, List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected View getItemView(int layoutResId, ViewGroup parent) {
        for (int i = 0; i < 10; i++) {
            int a = i;
        }
        return super.getItemView(layoutResId, parent);

    }
    @Override
    protected void convert(BaseViewHolder helper, String item) {
        UrlApis.INSTANCE.initTaoke(Urls.INSTANCE.getPublicUrl()+Urls.INSTANCE.getGetToken())
                .doOnSubscribe(new Action0() {
                    @Override
                    public void call() {
                        Log.e(TAG, "call: " );
                    }
                }).observeOn(AndroidSchedulers.mainThread())
                .subscribe(new Action1<TaoKeBean.TaoKeKt>() {
                    @Override
                    public void call(TaoKeBean.TaoKeKt taoKeKt) {

                    }
                });
    }
}
